namespace IAM.Interface.Model
{
    using IAM.Interface.Common;
    using IAM.Interface.Model.Interface;
    using System;
    using System.Text;

    public class OrganizeDeleteParameter : AbstractConvertObject, IConvertXml
    {
        private string _mergeorgid = "";
        private string _orgid = "";

        public override object ConvertToObject()
        {
            this.OrgID = EnDeCoding.Decode(this.CurrentXmlNode.SelectSingleNode("OrgID").InnerText);
            this.MergeOrgID = EnDeCoding.Decode(this.CurrentXmlNode.SelectSingleNode("MergeOrgID").InnerText);
            return this;
        }

        public string MergeOrgID
        {
            get
            {
                return this._mergeorgid;
            }
            set
            {
                this._mergeorgid = value;
            }
        }

        public string OrgID
        {
            get
            {
                return this._orgid;
            }
            set
            {
                this._orgid = value;
            }
        }

        public string XML
        {
            get
            {
                return (this.XMLBoday + this.XMLFinis);
            }
        }

        public string XMLBoday
        {
            get
            {
                StringBuilder xml = new StringBuilder();
                xml.Append(" <OrgID>" + EnDeCoding.Encode(this.OrgID) + "</OrgID>");
                xml.Append(" <MergeOrgID>" + EnDeCoding.Encode(this.MergeOrgID) + "</MergeOrgID>");
                return xml.ToString();
            }
        }

        public string XMLFinis
        {
            get
            {
                return "";
            }
        }
    }
}

